//
//  JsBottomInputBarController.m
//  JsUtilityDemo
//
//  Created by Gikki Ares on 2021/8/7.
//

#import "JsBottomInputBarController.h"
#import <JsAsrUtilitySdk/JsBottomInputBar.h>
#import <JsUtilitySdk/JsGeometryManager.h>
#import <JsUtilitySdk/JsDisplayManager.h>
#import <JsUtilitySdk/JsColorManager.h>

@interface JsBottomInputBarController ()

@end

@implementation JsBottomInputBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
	CGFloat safeAreaBottomHeight = JsGeometryManager.safeAreaInsets.bottom;
	JsBottomInputBar * inputBar = [[JsBottomInputBar alloc] initWithFrame:CGRectMake(0, 200, JsGeometryManager.screenWidth, 50)];
	inputBar.backgroundColor = [UIColor lightGrayColor];
	JsDisplayStyle * style = [JsDisplayStyle defaulStyle];
	style.displayPosition = JsDisplayPositionBottom;
	style.offset_displayPosition = UIOffsetMake(0, -safeAreaBottomHeight);
	[inputBar displayInView:self.view withDisplayStyle:style undisplayCompletionHandler:nil];
	self.view.backgroundColor = [JsColorManager morandi_lightGray];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
